home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / Emulation_Include_Files / htmlctrl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  2.5 KB  |  91 lines

  1. /*---------------------------------------------------------------------------*\
  2.  *
  3.  * (c) Copyright Microsoft Corp. 1996 All Rights Reserved
  4.  *
  5.  *  module: htmlctrl.h
  6.  *  date:
  7.  *  author: scottsh
  8.  *
  9. \*---------------------------------------------------------------------------*/
  10.  
  11. #ifndef __HTMLCTRL_H__
  12. #define __HTMLCTRL_H__
  13.  
  14. ////////////////////////////////////////////////////////////////////////////////
  15.  
  16.  
  17. #define DTM_ADDTEXT                (WM_USER + 101)
  18. #define DTM_ADDTEXTW            (WM_USER + 102)
  19. #define DTM_SETIMAGE            (WM_USER + 103)
  20. #define DTM_ENDOFSOURCE            (WM_USER + 104)
  21. #define DTM_ANCHOR                (WM_USER + 105)
  22. #define DTM_ANCHORW                (WM_USER + 106)
  23. #define DTM_ENABLESHRINK        (WM_USER + 107)
  24. #define DTM_SCROLLINTOVIEW        (WM_USER + 108)
  25. #define DTM_IMAGEFAIL            (WM_USER + 109)
  26. #define DTM_REALLYDONE            (WM_USER + 110)
  27. #define DTM_SELECTALL            (WM_USER + 111)
  28. #define DTM_ISSELECTION            (WM_USER + 112)
  29. #define DTM_CLEAR                (WM_USER + 113)
  30. #define DTM_CLEAREXCEPTSCRIPT    (WM_USER + 114)
  31.  
  32. #define NM_HOTSPOT                (WM_USER + 101)
  33. #define NM_INLINE_IMAGE            (WM_USER + 102)
  34. #define NM_INLINE_SOUND            (WM_USER + 103)
  35. #define NM_TITLE                (WM_USER + 104)
  36. #define NM_META                    (WM_USER + 105)
  37. #define NM_BASE                    (WM_USER + 106)
  38. #define NM_CONTEXTMENU            (WM_USER + 107)
  39.  
  40. #define DISPLAYCLASS    TEXT("DISPLAYCLASS")
  41.  
  42. #ifdef __cplusplus
  43. extern "C"
  44. #endif
  45. #ifdef _WIN32_WCE_EMULATION
  46. BOOL WINAPI InitHTMLControl(HINSTANCE hinst);
  47. #else
  48. BOOL InitHTMLControl(HINSTANCE hinst);
  49. #endif
  50.  
  51. typedef struct tagNM_HTMLVIEW { 
  52.     NMHDR    hdr; 
  53.       LPSTR    szTarget;
  54.     LPSTR    szData;
  55.     DWORD    dwCookie;
  56. } NM_HTMLVIEW; 
  57.  
  58. typedef struct tagINLINEIMAGEINFO {
  59.     DWORD    dwCookie;
  60.     // WHATEVER else... decimation %, etc...
  61.     int iOrigHeight;
  62.     int iOrigWidth;
  63.     HBITMAP hbm;
  64.     BOOL bOwnBitmap;
  65. } INLINEIMAGEINFO, *LPINLINEIMAGEINFO;
  66.  
  67. // It's only a BACKGROUND hit if it didn't hit anything else interesing. :)
  68. #define HTMLCONTEXT_BACKGROUND            0x00
  69. #define HTMLCONTEXT_LINK                0x01
  70. #define HTMLCONTEXT_IMAGE                0x02
  71. #define HTMLCONTEXT_IMAGENOTLOADED        0x04
  72.  
  73. // BE CAREFUL.  The pointers in this structure are pointers to the real data
  74. // in the HTML Control (no point to make copies really...)
  75. // Just make sure you don't screw them up.
  76.  
  77. typedef struct tagNM_HTMLCONTEXT {
  78.     NMHDR        hdr; 
  79.     POINT        pt;
  80.     UINT        uTypeFlags;
  81.     LPTSTR        szLinkHREF;
  82.     LPTSTR        szImageSrc;
  83.     HBITMAP        hbmImage;
  84.     DWORD        dwImageCookie;
  85.     struct IImageRender *pImageRender;
  86. } NM_HTMLCONTEXT;
  87.  
  88. ////////////////////////////////////////////////////////////////////////////////
  89.  
  90. #endif //__HTMLCTRL_H__
  91.